﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BTKERP.DAL.DataAccess;
using BTKERP.IDAL.Inventory;
using BTKERP.Model.Inventory;

namespace BTKERP.DAL.Inventory
{
    public class UnitEquivalentDAL : DBContext
    {
        public IList<UnitEquivalentInfo> GetUnitEquivalents()
        {
            ExSQLCommand cmd = new ExSQLCommand("usp_SelectUnitEquivalentsAll");
            return GetEntityList<UnitEquivalentInfo>(cmd);
        }

        //public UnitEquivalentInfo GetUnitEquivalentById(int id)
        //{
        //    ExSQLCommand cmd = new ExSQLCommand("usp_SelectUnitEquivalent");
        //    cmd.AddParameter("@Id", id);
        //    return GetSingleEntity<UnitEquivalentInfo>(cmd);
        //}
    }
}
